// Marmalade: an Emacs Lisp package server.
// Copyright (C) 2010 Google Inc.

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

!!! 5
html(lang="en")
  head
    title Marmalade: Spreadable Elisp
    link(rel="stylesheet", type="text/css", href="/stylesheets/screen.css")
  body
    header
      hgroup
        a(href="/")
          h1 Marmalade
          h2 Spreadable Elisp
      nav
        - if (username)
          .signed-in Signed in as <span class="name">#{username}</span>
          form(accept-charset="utf-8", action="/logout", method="post")
            input(type="submit", value="Sign Out")
        - else
          a(href="/login") Sign In
          a(href="/register") Sign Up
        form(accept-charset="utf-8", action="/packages", method="get")
          input(type="search", name="q")
    #main(class=mainClass)
      - each message, name in flash
        div(class=name)!= message

      != body

    footer
      a(href="/about") About
      a(href="/docs") Docs
      a(href="http://code.google.com/p/marmalade") Code
